

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Threading.Tasks;
using Models;
using Models.Entity;

namespace IRepository
{
    /// <summary>
    /// 调课
    /// </summary>
    public interface IWeekCourseChangeRepository
    {

        /// <summary>
        /// 保存基本信息
        /// </summary>
        /// <param name="inEnt"></param>
        /// <returns></returns>
        Task<ResultObj<int>> Save(DtoSave<CWeekCourseChangeEntity> inEnt);

        /// <summary>
        /// 生成调课记录,返回需调课记录
        /// </summary>
        /// <param name="inEnt"></param>
        /// <returns></returns>
        Task<ResultObj<string>> MakeWeekCourseChange(CWeekCourseChangeEntity inEnt);

        /// <summary>
        /// 检测调课记录,返回需调课记录
        /// </summary>
        /// <param name="inEnt"></param>
        /// <returns></returns>
        Task<ResultObj<string>> CheckWeekCourseChange(CWeekCourseChangeEntity inEnt);
        /// <summary>
        /// 课表交换
        /// </summary>
        /// <param name="inEnt">k表示名称，v表示编号</param>
        /// <returns></returns>
        Task<ResultObj<string>> ChangeWeekCourse(DtoDo<List<KV>> inEnt);

        /// <summary>
        /// 删除调课
        /// </summary>
        /// <param name="id">调课ID</param>
        /// <returns></returns>
        Task<ResultObj<int>> Delete(int id);

    }
}
